import { RouteRecordRaw } from 'vue-router'

const oaRoutes: Array<RouteRecordRaw> = [
  {
    path: '/oa',
    redirect: '/oa/schedule',
    name: 'OA',
    meta: { title: 'OA办公', icon: 'oa' },
    children: [
      {
        path: 'schedule',
        component: () => import('../views/oa/Schedule.vue'),
        name: 'OaSchedule',
        meta: { title: '日程安排', icon: 'oa-schedule' },
      },
      {
        path: 'schedule/calendar',
        component: () => import('../views/oa/Schedule.vue'),
        name: 'OaScheduleCalendar',
        meta: { title: '工作日历', icon: 'oa-calendar' },
      },
      {
        path: 'work',
        component: () => import('../views/oa/Work.vue'),
        name: 'OaWork',
        meta: { title: '工作记录', icon: 'oa-work' },
      },
      {
        path: 'meeting',
        component: () => import('../views/oa/Meeting.vue'),
        name: 'OaMeeting',
        meta: { title: '会议纪要', icon: 'oa-meeting' },
      },
      {
        path: 'news',
        component: () => import('../views/oa/News.vue'),
        name: 'OaNews',
        meta: { title: '新闻公告', icon: 'oa-news' },
      },
      {
        path: 'note',
        component: () => import('../views/oa/Note.vue'),
        name: 'OaNote',
        meta: { title: '公告通知', icon: 'oa-note' },
      },
    ],
  },
]

export default oaRoutes
